package com.ksd.system.service.impl;

import com.ksd.system.domain.SysFreqTwice;
import com.ksd.system.mapper.SysFreqTwiceMapper;
import com.ksd.system.service.ISysFreqTwiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 频点参数Service业务层处理
 * 
 * @author y.wu
 * @date 2025-02-08
 */
@Service
public class SysFreqTwiceServiceImpl implements ISysFreqTwiceService
{
    @Autowired
    private SysFreqTwiceMapper sysFreqTwiceMapper;

    /**
     * 查询频点参数
     * 
     * @param id 频点参数主键
     * @return 频点参数
     */
    @Override
    public SysFreqTwice selectSysFreqById(Long id)
    {
        return sysFreqTwiceMapper.selectSysFreqById(id);
    }

    /**
     * 查询频点参数列表
     * 
     * @param sysFreq 频点参数
     * @return 频点参数
     */
    @Override
    public List<SysFreqTwice> selectSysFreqList(SysFreqTwice sysFreq)
    {
        return sysFreqTwiceMapper.selectSysFreqList(sysFreq);
    }

    /**
     * 新增频点参数
     * 
     * @param sysFreq 频点参数
     * @return 结果
     */
    @Override
    public int insertSysFreq(SysFreqTwice sysFreq)
    {
        return sysFreqTwiceMapper.insertSysFreq(sysFreq);
    }

    /**
     * 修改频点参数
     * 
     * @param sysFreq 频点参数
     * @return 结果
     */
    @Override
    public int updateSysFreq(SysFreqTwice sysFreq)
    {
        return sysFreqTwiceMapper.updateSysFreq(sysFreq);
    }

    /**
     * 批量删除频点参数
     * 
     * @param ids 需要删除的频点参数主键
     * @return 结果
     */
    @Override
    public int deleteSysFreqByIds(Long[] ids)
    {
        return sysFreqTwiceMapper.deleteSysFreqByIds(ids);
    }

    /**
     * 删除频点参数信息
     * 
     * @param id 频点参数主键
     * @return 结果
     */
    @Override
    public int deleteSysFreqById(Long id)
    {
        return sysFreqTwiceMapper.deleteSysFreqById(id);
    }

    @Override
    public int clearSysFreq() {
        return sysFreqTwiceMapper.clearSysFreq();
    }

    @Override
    public SysFreqTwice selectSysFreqByFreqAndBoardId(Long freq, String board) {
        return sysFreqTwiceMapper.selectSysFreqByFreqAndBoardId(freq,Long.valueOf(board));
    }

    @Override
    public SysFreqTwice selectSysFreqByFreq(Long freq) {
        return sysFreqTwiceMapper.selectSysFreqByFreq(freq);
    }

    @Override
    public List<SysFreqTwice> selectSysFreqListByFreq(SysFreqTwice numberFreq) {
        return sysFreqTwiceMapper.selectSysFreqListByFreq(numberFreq);
    }

    @Override
    public List<SysFreqTwice> selectSysFreqListByNumber(SysFreqTwice sysFreq) {
        return sysFreqTwiceMapper.selectSysFreqListByNumber(sysFreq);
    }
}
